#ifndef __BSP_SOUND_H
#define __BSP_SOUND_H
#include "Com_Debug.h"

#include "driver/i2c_master.h"

#include "driver/i2s_std.h"
#include "driver/i2s_tdm.h"
#include "soc/soc_caps.h"

#include "esp_codec_dev.h"
#include "esp_codec_dev_defaults.h"

void bsp_sound_init(void);
void bsp_sound_open(void);

void bsp_sound_close(void);

int bsp_sound_write(uint8_t *data, int size);

int bsp_sound_read(uint8_t data[], int size);

void setVolume(int volume);

void setMute(bool mute);

#endif 
